package com.kiryaka.manager
{
	import flash.xml.XMLNode;
	
	import mx.core.FlexGlobals;

	public class DirDataManager
	{
		private var xml:XMLList;
		public function DirDataManager()
		{	
			//xml = new XMLList(s);
		}
		
		public function getXml():XMLList{
			return FlexGlobals.topLevelApplication.dirs;
		}
		
		public function getPath(node:XML, path:String):String{
			if (node.name() == "tree") return "/" + path;
			return getPath(node.parent(), node.@label + "/" + path);
		}
	}
}